<?xml version='1.0' encoding='ISO-8859-1' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"   
      xmlns:jb="http://java.sun.com/jsf/composite/componentes"
      xmlns:p="http://primefaces.org/ui">

    <SCRIPT language="JavaScript" type="text/javascript">
                   
        function handleRequestIndirecto(xhr, status, args) {                     
            if(args.validationFailed || !args.CallbackParam) {  
                
            } else {                              
                carDialogIndirecto.hide();  
                jQuery('#btnGuardarIndirecto').fadeOut();  
            }
        }  
    </SCRIPT>
    <h:form onsubmit="return checkSubmit();"  id="frmIndirecto">
        <h:panelGrid id="pgFormDtoIndirecto" frame="box">
            <h:panelGrid  columns="4" cellpadding="4">
                
                <h:outputLabel for="itPopupIndirecto" styleClass="label" value="#{i18n['form.parte.trabajo.costo.indirecto']}"/>
                <p:selectOneMenu id="itPopupIndirecto" value="#{parteTrabajoMBean.detaIndirectoDto.costoIndirectoDto}" required="true" converter="costoIndirectoConvert" style="#{applicationMBean.estiloObligatorio}" disabled="#{parteTrabajoMBean.detaIndirectoDto.accionNvl3 == applicationMBean.ver}">
                    <f:selectItems value="#{parteTrabajoMBean.listaIndirecto}" var="indirectoDto" itemLabel="#{indirectoDto.descripcion}" itemValue="#{indirectoDto}"/>
                </p:selectOneMenu>          
            </h:panelGrid>
        
            <p:panel id="pnlAcciones">
                <h:panelGrid columns="10">
                    <p:commandButton id="btnGuardarIndirecto" update=":msjDialogIndirecto,:tabPrincOperacion:frmPopupIndirecto:tblIndirecto"
                                     title="#{i18n['general.button.guardar.tip']}"
                                     style="#{applicationMBean.estilosBtnGuardar}"
                                     ajax="true"
                                     icon="ui-icon ui-icon-disk" rendered="#{parteTrabajoMBean.detaIndirectoDto.accionNvl3 != applicationMBean.ver}"
                                     value="#{i18n['general.button.guardar']}"
                                     action="#{parteTrabajoMBean.guardarIndirecto}"
                                     oncomplete="handleRequestIndirecto(xhr, status, args);"
                                     >
                    </p:commandButton>
                </h:panelGrid>
            </p:panel>
        </h:panelGrid>  
    </h:form>
</html>